<template>
  <div class="home">
    <div class="home_box1">
      <div v-for="(v,i) in getData" :key="i" class="list1">
        <div class="list1_1">
          <img :src="v.thumbUrl" alt />
        </div>
        <p>{{v.name}}</p>
      </div>
    </div>
  </div>
</template>

<script>
import axios from "axios";

export default {
  data() {
    return {
      getData: [],
    };
  },
  mounted() {
    axios
      .get("/api/mobile/main/getMainMiniProgramHomeInfo.do")
      .then((res) => {
        this.getData = res.data.body.data.scene;
      })
      .catch(function (err) {
        console.log(err);
      });
  },
};
</script>

<style scoped>
/* 导航 */
* {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}
.home_box1 {
  width: 100vw;
  display: flex;
  flex-wrap: wrap;
  background: #fff;
}

.list1 {
  width: 15vw;
  height: 15vw;
  /* 上右下左 */
  margin: 1vh 0.5vh 0vh 1vh;
  padding: 4vh 2vh;
  /* background: red; */
}
.list1 .list1_1 {
  margin: 0vh 0vh 0vh 1vh;
}
.list1 .list1_1 img {
  width: 100%;
  height: 100%;
}
.list1 p {
  width: 20vw;
  text-align: center;
  font-size: 0.75rem;
  margin-left: -1vh;
  margin-top: 1vh;
  color: rgba(0, 0, 0, 0.8);
}
</style>